﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace BanmaytinhDAL
{
    public class DonvitinhInfo
    {
        private string _Madonvitinh;
        private string _Tendonvitinh;



        public string Madonvitinh { get { return _Madonvitinh; } set { _Madonvitinh = value; } }
        public string Tendonvi{ get { return _Tendonvitinh; } set { _Tendonvitinh = value; } }


        public DonvitinhInfo DonvitinhIDataReader(IDataReader dr)
        {
            BanmaytinhDAL.DonvitinhInfo obj = new BanmaytinhDAL.DonvitinhInfo();
            obj.Madonvitinh = (dr["Madonvitinh"] is DBNull) ? string.Empty : dr["Madonvitinh"].ToString();
            obj.Tendonvi = (dr["Tendonvi"] is DBNull) ? string.Empty : dr["Tendonvi"].ToString();

            return obj;


        }
    }
}
